class A{
    name: string
    age:string
    constructor(name: string,age:string,) {
        this.name = name
        this.age = age
    }
}
class B{
    name: string='10'
    age:number
    constructor(name: string,age:number) {
        this.age = age
    }
}

class C{
    name: string='10'
    age:number
    pid?:string
    pids:string|undefined
    constructor(name: string,age:number) {
        this.age = age
    }
}
class D{
    name: string='10'
    age:number
    pid?:string
    pids:string|undefined
    readonly gender:'男'|'女'
    constructor(name: string,age:number,gender:'男'|'女') {
        this.age = age
        this.gender = gender
    }
}
class E{
    public name: string='10'
    public age:number
    private pid?:string
    private pids:string|undefined
    readonly gender:'男'|'女'
    constructor(name: string,age:number,gender:'男'|'女') {
        this.age = age
        this.gender = gender
    }
}
class F{
    age:number
    constructor(public name:string,age:number) {
        this.age = age
    }
}